The possible origin of the anomalous cosmic rays (ACR) are studied in terms of stellar wind injection from O type stars and their acceleration in shock fronts of SNR's. It is assumed that a fraction of heavy ions will encounter interstellar shock fronts of SNR's and these are accelerated to about 5 to 100 MeV/N and give rise to ACR's. Typically these ions would travel a distance of the order of a few 1000 pc. Therefore it is estimated that O type stars in a volume of radius of a few Kpc around the solar system are contributing to the intensity of ACR in the local ISM. From observational data, the intensity of ACR in the local ISM is estimated. It is suggested that these ACR ions enter the solar system along the solar dipole field lines connected to the interplanetary magnetic field lines.